﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class WorldMapNewWorldMapDataWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(WorldMapNew.WorldMapData);
			Utils.BeginObjectRegister(type, L, translator, 0, 4, 9, 9);
			
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "InitData", _m_InitData);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddLODData", _m_AddLODData);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddMapChunckResId", _m_AddMapChunckResId);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddDeleateAllinacePointIdx", _m_AddDeleateAllinacePointIdx);
			
			
			Utils.RegisterFunc(L, Utils.GETTER_IDX, "mapWidth", _g_get_mapWidth);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "mapHeight", _g_get_mapHeight);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "mapLayerRunDtas", _g_get_mapLayerRunDtas);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "mapLODDatas", _g_get_mapLODDatas);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "mapChunckResIds", _g_get_mapChunckResIds);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "mapChunckDeleateDatas", _g_get_mapChunckDeleateDatas);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "mapChunckDeleatePoints", _g_get_mapChunckDeleatePoints);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "mapAllianceDeleatePoints", _g_get_mapAllianceDeleatePoints);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "mapOverSeaShapeInfos", _g_get_mapOverSeaShapeInfos);
            
			Utils.RegisterFunc(L, Utils.SETTER_IDX, "mapWidth", _s_set_mapWidth);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "mapHeight", _s_set_mapHeight);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "mapLayerRunDtas", _s_set_mapLayerRunDtas);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "mapLODDatas", _s_set_mapLODDatas);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "mapChunckResIds", _s_set_mapChunckResIds);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "mapChunckDeleateDatas", _s_set_mapChunckDeleateDatas);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "mapChunckDeleatePoints", _s_set_mapChunckDeleatePoints);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "mapAllianceDeleatePoints", _s_set_mapAllianceDeleatePoints);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "mapOverSeaShapeInfos", _s_set_mapOverSeaShapeInfos);
            
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
			
			
            
			
			
			
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New", __CreateInstanceNew);
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 1)
				{
					
					var gen_ret = new WorldMapNew.WorldMapData();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to WorldMapNew.WorldMapData constructor!");
            
        }

        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstanceNew(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 0)
				{
					
					var gen_ret = new WorldMapNew.WorldMapData();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to WorldMapNew.WorldMapData constructor!");
            
        }

        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_InitData(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                WorldMapNew.WorldMapData gen_to_be_invoked = (WorldMapNew.WorldMapData)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    WorldMapNew.WorldMapData _data = (WorldMapNew.WorldMapData)translator.GetObject(L, 2, typeof(WorldMapNew.WorldMapData));
                    
                    gen_to_be_invoked.InitData( _data );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddLODData(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                WorldMapNew.WorldMapData gen_to_be_invoked = (WorldMapNew.WorldMapData)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    WorldMapNew.MapLODData _lodData = (WorldMapNew.MapLODData)translator.GetObject(L, 2, typeof(WorldMapNew.MapLODData));
                    
                    gen_to_be_invoked.AddLODData( _lodData );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddMapChunckResId(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                WorldMapNew.WorldMapData gen_to_be_invoked = (WorldMapNew.WorldMapData)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _chunckResId = LuaAPI.xlua_tointeger(L, 2);
                    
                    gen_to_be_invoked.AddMapChunckResId( _chunckResId );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddDeleateAllinacePointIdx(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                WorldMapNew.WorldMapData gen_to_be_invoked = (WorldMapNew.WorldMapData)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _idx = LuaAPI.xlua_tointeger(L, 2);
                    
                    gen_to_be_invoked.AddDeleateAllinacePointIdx( _idx );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_mapWidth(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                WorldMapNew.WorldMapData gen_to_be_invoked = (WorldMapNew.WorldMapData)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.mapWidth);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_mapHeight(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                WorldMapNew.WorldMapData gen_to_be_invoked = (WorldMapNew.WorldMapData)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.mapHeight);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_mapLayerRunDtas(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                WorldMapNew.WorldMapData gen_to_be_invoked = (WorldMapNew.WorldMapData)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.mapLayerRunDtas);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_mapLODDatas(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                WorldMapNew.WorldMapData gen_to_be_invoked = (WorldMapNew.WorldMapData)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.mapLODDatas);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_mapChunckResIds(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                WorldMapNew.WorldMapData gen_to_be_invoked = (WorldMapNew.WorldMapData)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.mapChunckResIds);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_mapChunckDeleateDatas(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                WorldMapNew.WorldMapData gen_to_be_invoked = (WorldMapNew.WorldMapData)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.mapChunckDeleateDatas);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_mapChunckDeleatePoints(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                WorldMapNew.WorldMapData gen_to_be_invoked = (WorldMapNew.WorldMapData)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.mapChunckDeleatePoints);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_mapAllianceDeleatePoints(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                WorldMapNew.WorldMapData gen_to_be_invoked = (WorldMapNew.WorldMapData)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.mapAllianceDeleatePoints);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_mapOverSeaShapeInfos(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                WorldMapNew.WorldMapData gen_to_be_invoked = (WorldMapNew.WorldMapData)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.mapOverSeaShapeInfos);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_mapWidth(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                WorldMapNew.WorldMapData gen_to_be_invoked = (WorldMapNew.WorldMapData)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.mapWidth = LuaAPI.xlua_tointeger(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_mapHeight(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                WorldMapNew.WorldMapData gen_to_be_invoked = (WorldMapNew.WorldMapData)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.mapHeight = LuaAPI.xlua_tointeger(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_mapLayerRunDtas(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                WorldMapNew.WorldMapData gen_to_be_invoked = (WorldMapNew.WorldMapData)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.mapLayerRunDtas = (System.Collections.Generic.List<WorldMapNew.MapLayerRunDta>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<WorldMapNew.MapLayerRunDta>));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_mapLODDatas(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                WorldMapNew.WorldMapData gen_to_be_invoked = (WorldMapNew.WorldMapData)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.mapLODDatas = (System.Collections.Generic.List<WorldMapNew.MapLODData>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<WorldMapNew.MapLODData>));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_mapChunckResIds(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                WorldMapNew.WorldMapData gen_to_be_invoked = (WorldMapNew.WorldMapData)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.mapChunckResIds = (System.Collections.Generic.List<int>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<int>));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_mapChunckDeleateDatas(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                WorldMapNew.WorldMapData gen_to_be_invoked = (WorldMapNew.WorldMapData)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.mapChunckDeleateDatas = (System.Collections.Generic.List<WorldMapNew.MapChunckDeleateData>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<WorldMapNew.MapChunckDeleateData>));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_mapChunckDeleatePoints(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                WorldMapNew.WorldMapData gen_to_be_invoked = (WorldMapNew.WorldMapData)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.mapChunckDeleatePoints = (System.Collections.Generic.List<int>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<int>));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_mapAllianceDeleatePoints(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                WorldMapNew.WorldMapData gen_to_be_invoked = (WorldMapNew.WorldMapData)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.mapAllianceDeleatePoints = (System.Collections.Generic.List<int>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<int>));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_mapOverSeaShapeInfos(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                WorldMapNew.WorldMapData gen_to_be_invoked = (WorldMapNew.WorldMapData)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.mapOverSeaShapeInfos = (System.Collections.Generic.List<WorldMapNew.OverSeaShapeInfo>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<WorldMapNew.OverSeaShapeInfo>));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
		
		
		
		
    }
}
